package com.elai.baseconfig.domain;

import com.elai.common.annotation.Excel;
import com.elai.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 模板配置对象 channel_template
 *
 * @author elai
 * @date 2021-04-03
 */
public class ChannelTemplateDO extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 模板ID */
    private Long id;

    /** 渠道ID */
    @Excel(name = "渠道ID")
    private Long channelId;

    private String templateCode;

    private String downType;
    /** 模板名称 */
    @Excel(name = "模板名称")
    private String templateName;

    /** 模板报文 */
    @Excel(name = "模板报文")
    private String templateMessage;



    /** 启用状态Y正常 N用 */
    @Excel(name = "启用状态Y正常 N用")
    private String status;

    /** 排序 */
    @Excel(name = "排序")
    private Long orderNum;

    public void setId(Long id)
    {
        this.id = id;
    }
    public Long getId()
    {
        return id;
    }

    public void setChannelId(Long channelId)
    {
        this.channelId = channelId;
    }
    public Long getChannelId()
    {
        return channelId;
    }

    public void setTemplateName(String templateName)
    {
        this.templateName = templateName;
    }
    public String getTemplateName()
    {
        return templateName;
    }

    public void setTemplateMessage(String templateMessage)
    {
        this.templateMessage = templateMessage;
    }
    public String getTemplateMessage()
    {
        return templateMessage;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }
    public String getStatus()
    {
        return status;
    }

    public void setOrderNum(Long orderNum)
    {
        this.orderNum = orderNum;
    }
    public Long getOrderNum()
    {
        return orderNum;
    }

    public String getTemplateCode() {
        return templateCode;
    }

    public void setTemplateCode(String templateCode) {
        this.templateCode = templateCode;
    }

    public String getDownType() {
        return downType;
    }

    public void setDownType(String downType) {
        this.downType = downType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("channelId", getChannelId())
            .append("templateName", getTemplateName())
            .append("templateMessage", getTemplateMessage())
            .append("status", getStatus())
            .append("orderNum", getOrderNum())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
